<template>
  <div class="btnSubmit">
    <button @click="LoginBtn">{{ BtnType }}</button>
  </div>
</template>

<script>
export default {
  props: ["BtnType"],
  methods: {
    LoginBtn() {
      // this.$emit("LoginBtn");
      if (this.BtnType === "登陆") {
        this.$emit("LoginBtn");
      } else {
        this.$emit("RegisterBtn");
      }
    },
  },
};
</script>

<style lang="less" scoped>
.btnSubmit {
  margin-top: 40/360 * 100vw;
  button {
    width: 100%;
    height: 40/360 * 100vw;
    border-radius: 20/360 * 100vw;
    background-color: #cc3300;
    font-size: 16/360 * 100vw;
    color: #f7d9c8;
  }
}
</style>